home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-03-26 | 525 b | 22 lines | [TEXT/R*ch] |
- void CreateModelessDialog(short DialogID, DialogPtr *theNewDialog)
- {
- short tempType;
- short numItems;
- short i;
-
- *theNewDialog = NULL;
- *theNewDialog = DMX_GetNewDialog
- (DialogID, kDMX_Modeless, 0L,kDMFlag_DoIdleEvents);
- if (*theNewDialog !=NULL) {
- numItems = DMX_CountDITL(*theNewDialog) +1;
- for (i=1;i<numItems; i++){
- tempType = DMX_GetItemType(*theNewDialog,i);
- if (tempType==editText)
- DMX_SetIBarFlag(*theNewDialog,i,true);
- }
- ShowWindow(*theNewDialog);
- SetPort(*theNewDialog);
- }
- return;
- }
-